import config from "@/config"
import http from "@/utils/request"
export default {
	token: {
		url: `${config.API_URL}/token`,
		name: "登录获取TOKEN",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	login: {
		url: `${config.API_DOCS}security/login`,						//APIURL
		name: "用户登录",							//API名称
		post: async function(data){					//请求方法
			return await http.post(this.url, data);
		}
	},
	resetPassword: {
		url: `${config.API_DOCS}user/resetPassword`,						//APIURL
		name: "修改密码",							//API名称
		post: async function(data){					//请求方法
			return await http.post(this.url, data);
		}
	},
	getImageCode: {
		url: `${config.API_DOCS}security/getImageCode`,						//APIURL
		name: "请求验证码",							//API名称
		GET: async function(data){					//请求方法
			return await http.GET(this.url, data);
		}
	}
}
